package com.icangya.domain;

import javax.persistence.*;
import java.sql.Timestamp;

@Entity
@Table(name = "odevity")
public class Odevity {//猜奇偶数开奖记录表

    private long id;//编号
    /*
    * 开奖期号
    * */
    private long issueNum;
    /*
   * 开奖号码
   * */
    private long lotteryNum;
    /*
      * 奇偶
      * */
    private  String lotteryString;

    private long odevityNum;//奇偶数

    private long lotteryStatus;//开奖状态  0:已开奖 1：未开奖

    /**
     * 开奖时间
     */
    private Timestamp createTime;


    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "id")
    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    @Basic
    @Column(name = "issue_name")
    public long getIssueNum() {
        return issueNum;
    }

    public void setIssueNum(long issueNum) {
        this.issueNum = issueNum;
    }
    @Basic
    @Column(name = "lottery_num")
    public long getLotteryNum() {
        return lotteryNum;
    }

    public void setLotteryNum(long lotteryNum) {
        this.lotteryNum = lotteryNum;
    }
    @Basic
    @Column(name = "lottery_string")
    public String getLotteryString() {
        return lotteryString;
    }

    public void setLotteryString(String lotteryString) {
        this.lotteryString = lotteryString;
    }
    @Basic
    @Column(name = "odevity_num")
    public long getOdevityNum() {
        return odevityNum;
    }

    public void setOdevityNum(long odevityNum) {
        this.odevityNum = odevityNum;
    }

    @Basic
    @Column(name = "lottery_status")
    public long getLotteryStatus() {
        return lotteryStatus;
    }

    public void setLotteryStatus(long lotteryStatus) {
        this.lotteryStatus = lotteryStatus;
    }

    @Basic
    @Column(name = "create_time")
    public Timestamp getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Timestamp createTime) {
        this.createTime = createTime;
    }


    public Odevity() {
    }

    public Odevity(long issueNum, long lotteryNum, String lotteryString, Timestamp createTime) {
        this.issueNum = issueNum;
        this.lotteryNum = lotteryNum;
        this.lotteryString = lotteryString;
        this.createTime = createTime;
    }

    public Odevity(long issueNum, long lotteryNum, String lotteryString, long odevityNum, long lotteryStatus, Timestamp createTime) {
        this.issueNum = issueNum;
        this.lotteryNum = lotteryNum;
        this.lotteryString = lotteryString;
        this.odevityNum = odevityNum;
        this.lotteryStatus = lotteryStatus;
        this.createTime = createTime;
    }
}
